import { Entity, model, property } from '@loopback/repository';

@model()
export class Forward extends Entity {
  @property({
    type: 'number',
    id: true,
  })
  id?: number;

  @property({
    type: 'number',
  })
  userId: number;

  @property({
    type: 'string',
  })
  username: string;

  @property({
    type: 'number',
  })
  postId?: number;

  @property({
    type: 'string',
  })
  content: string;

  @property({
    type: 'date',
  })
  created?: string;

  constructor(data?: Partial<Forward>) {
    super(data);
  }
}
